package com.sailing.xjpb.orm.utils;

import com.sailing.xjpb.common.sercurity.SailingUserContext;
import com.sailing.xjpb.common.sercurity.SailingUserCurrentInfo;

/**
 * 解决定时任务未使用IPAAS ，保存数据 初始化创建人 修改人信息（PO 中增加了实现了Operator  CreateOperator, EditOperator）
 *
 * @author luozy
 * Created time 2023/2/22
 */
public class SailingDefaultUserContext implements SailingUserContext {

    @Override
    public SailingUserCurrentInfo getCurrentUser() {
        return new SailingUserCurrentInfo() {
            @Override
            public String getUsercname() {
                return null;
            }

            @Override
            public void setUsercname(String usercname) {

            }

            @Override
            public String getAccountId() {
                return null;
            }

            @Override
            public void setAccountId(String accountId) {

            }

            @Override
            public String getOrgName() {
                return null;
            }

            @Override
            public void setOrgName(String orgName) {

            }

            @Override
            public String getMobilePhone() {
                return null;
            }

            @Override
            public void setMobilePhone(String mobilePhone) {

            }

            @Override
            public String getOrgCode() {
                return null;
            }

            @Override
            public void setOrgCode(String orgCode) {

            }

            @Override
            public String getUserid() {
                return null;
            }

            @Override
            public void setUserid(String userid) {

            }

            @Override
            public String getOrgId() {
                return null;
            }

            @Override
            public void setOrgId(String orgId) {

            }

            @Override
            public String getUserLoginType() {
                return null;
            }

            @Override
            public void setUserLoginType(String userLoginType) {

            }

            @Override
            public String getStatus() {
                return null;
            }

            @Override
            public void setStatus(String status) {

            }

            @Override
            public String getUsername() {
                return null;
            }

            @Override
            public void setUsername(String username) {

            }

            @Override
            public String getTenantCode() {
                return null;
            }

            @Override
            public void setTenantCode(String tenantCode) {

            }

            @Override
            public String getUserCode() {
                return null;
            }

            @Override
            public void setUserCode(String userCode) {

            }

            @Override
            public String getExpiryDate() {
                return null;
            }

            @Override
            public void setExpiryDate(String expiryDate) {

            }

            @Override
            public String getTenantExpireTime() {
                return null;
            }

            @Override
            public void setTenantExpireTime(String tenantExpireTime) {

            }

            @Override
            public String getTenantId() {
                return null;
            }

            @Override
            public void setTenantId(String tenantId) {

            }
        };
    }

    @Override
    public String getClientIpAddress() {
        return "127.0.0.1";
    }

    @Override
    public String getTenantCode() {
        return "ipaas";
    }
}
